package models

import (
	"database/sql"
	"time"
)

type MenuSetting struct {
	Id          int           `json:"id"`
	MenuName    string        `json:"menu_name";gorm:"size:128"`
	Path        string        `json:"path" gorm:"size: 128"`
	Icon        string        `json:"icon" gorm:"size: 64"`
	Visible     bool          `json:"visible";gorm:"default:'0'"` // 0 默认下架
	State       bool          `json:"state";gorm:"default:'0'"`   // 0 默认不删除 1 软删除
	Sort        int           `json:"sort";gorm:"AUTO_INCREMENT"` // 排序
	ChildStatus bool          `json:"child_status"`
	CreatedTime time.Time     `json:"created_time"`
	UpdateTime  *sql.NullTime `json:"update_time"`
}

type ArticleTypeAndMenuName struct {
	ArticleType
	MenuName string `json:"menu_name";gorm:"size:128"`
}
